package com.sanweibook.jhook.common;

import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * Created by twg on 2017/5/17.
 */
public enum ErrorCodeEnum {
    SUCCESS("C000000","成功"),
    NO_DATA_EXIST("C000002","数据不存在"),
    REMOTE_SERVICE_ERROR("C000015","远程服务出错"),
    PARAMETER_ERROR("C000043","参数错误");

    ErrorCodeEnum (String code,String message){
        this.code  = code;
        this.message = message;
    }

    private String code;

    private String message;

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
